﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace blackhouse.Translator.Business.Configuration {
    internal class TranslatorConfigurationSection : ConfigurationSection {

        [ConfigurationProperty("Languages", IsRequired = true)]
        public TranslatorConfigurationLanguageCollection Languages {
            get {
                return (TranslatorConfigurationLanguageCollection)base["Languages"];
            }
            set {
                base["Languages"] = value;
            }
        }

        [ConfigurationProperty("ResourceManagers", IsRequired = true)]
        public TranslatorConfigurationManagersCollection ResourceManagers {
            get {
                return (TranslatorConfigurationManagersCollection)base["ResourceManagers"];
            }
            set {
                base["ResourceManagers"] = value;
            }
        }

        public static TranslatorConfigurationSection Get() {
            return (TranslatorConfigurationSection)ConfigurationManager.GetSection("Translator");
        }
    }
}
